package cn.pengyinrui.department.system.dept.domain;

import java.math.BigDecimal;
import java.util.Date;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.pengyinrui.department.system.emp.domain.Employee;
import lombok.Data;
import lombok.ToString;
// 手动修改路径
import cn.pengyinrui.department.base.domain.BaseDomain;

/**
 * <p>
 * 
 * </p>
 *
 * @author peng.yr
 * @since 2023-01-20
 */
@Data
@ToString
public class Department extends BaseDomain{

    private static final long serialVersionUID = 1L;

    /**
     * 部门编号
     */
    @Excel(name = "部门编号", orderNum = "1", width = 30, isImportField = "true_st")
    private String sn;
    /**
     * 部门名称
     */
    @Excel(name = "部门名称", orderNum = "2", width = 30, isImportField = "true_st")
    private String name;
    /**
     * 部门的上级分类层级id
     */

    //@Excel(name = "上级部门编号", orderNum = "3", width = 30, isImportField = "true_st")
    private String dirPath;
    /**
     * 部门状态，0正常，1禁用
     */
    @Excel(name = "部门状态", orderNum = "3", width = 30, isImportField = "true_st")
    private Integer state;
    /**
     * 部门管理员，关联Employee表id
     */
    @Excel(name = "部门管理员ID", orderNum = "4", width = 30, isImportField = "true_st")
    private Long managerId;
    /**
     * 上级部门
     */
    @Excel(name = "上级部门编号", orderNum = "5", width = 30, isImportField = "true_st")
    private Long parentId;
    @Excel(name = "下属店铺编号", orderNum = "6", width = 30, isImportField = "true_st")
    private Long shopId;


    public String getSn() {
        return sn;
    }

    public Department setSn(String sn) {
        this.sn = sn;
        return this;
    }

    public String getName() {
        return name;
    }

    public Department setName(String name) {
        this.name = name;
        return this;
    }

    public String getDirPath() {
        return dirPath;
    }

    public Department setDirPath(String dirPath) {
        this.dirPath = dirPath;
        return this;
    }

    public Integer getState() {
        return state;
    }

    public Department setState(Integer state) {
        this.state = state;
        return this;
    }

    public Long getManagerId() {
        return managerId;
    }

    public Department setManagerId(Long managerId) {
        this.managerId = managerId;
        return this;
    }

    public Long getParentId() {
        return parentId;
    }

    public Department setParentId(Long parentId) {
        this.parentId = parentId;
        return this;
    }

    public Long getShopId() {
        return shopId;
    }

    public Department setShopId(Long shopId) {
        this.shopId = shopId;
        return this;
    }


    private Employee manager;
    private Department parent;
}
